function getTime(){
    var date = new Date()
    var n = date.getFullYear()
    var y = date.getMonth() < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1
    var r = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
    var h = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
    var m = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
    var s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds()
    var weeks = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
    var week = weeks[date.getDay()]
    var obj = {
        date: n + '年' + y + '月' + r+ '日',
        time: h+':'+m+':'+s,
        week: week,
    }
    // console.log(n, y, r, h, m, s, week)
    // console.log(obj)
    return obj
}